﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yuekao.Domain.Entitys
{
    public class WorkflowInstanceModel
    {
        [Key]
        public long Id { get; set; }
        /// <summary>
        /// 工作id
        /// </summary>
        public string WorkflowId {  get; set; }
        /// <summary>
        /// 流程标识符
        /// </summary>
        public string DefinitionId { get; set; }
        /// <summary>
        /// 流程版本号
        /// </summary>
        public int Version { get; set; }
        /// <summary>
        /// 流程设计标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 当前步骤ID
        /// </summary>
        public string StepId {  get; set; }
        /// <summary>
        /// 当前步骤名称
        /// </summary>
        public string StepName { get; set; }
        /// <summary>
        /// 当前审批人ID
        /// </summary>
        public long AuditId { get; set; }
        /// <summary>
        /// 当前审批人名称
        /// </summary>
        public string AuditName { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 当前审批状态
        /// </summary>
        public string State {  get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? CompeltaTime {  get; set; }
        /// <summary>
        /// 流程设计表单
        /// </summary>
        [Column(TypeName = "json")]
        public string FormData { get; set; }
    }
}
